package com.net.xpay.alipay.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 2020/4/28 16:03

 */
@Getter
@Setter
@NoArgsConstructor
public class PayTransAuthInfoModel {

    private Detail detail;

    private NotifyContext notifyContext;

    private Error error;


    @Getter
    @Setter
    @NoArgsConstructor
    public class Detail {
        private String appId;

        private String authAppId;

        private Long authTime;

        private String appAuthCode;

        //令牌有效时间 单位秒
        private String reExpiresIn;

        private String appRefreshToken;

        //刷新令牌有效时间 单位秒
        private String expiresIn;

        private String userId;

        private String appAuthToken;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    public class NotifyContext {
        private String trigger;

        private TriggerContext triggerContext;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    public class TriggerContext {
        private String outBizNo;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    public class Error {

    }
}
